package com.example.demo.base;

import ohos.agp.utils.LayoutAlignment;
import ohos.agp.window.dialog.ToastDialog;

public class Global {
    public static void showToast(String tip) {
        new ToastDialog(MyApplication.getsInstance())
                .setText(tip != null ? tip : "")
                .setAlignment(LayoutAlignment.CENTER)
                .show();
    }
}
